<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>办理离职</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <link href="/dist/plugins/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/dist/plugins/webuploader-0.1.5/webuploader.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=8e9c5bb62">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=66b457d6">

    <style type="text/css">
        td div {
            float: left;
            text-align: center;
            height: 100%;
        }

        .fj {
            cursor: pointer;
            margin-left: 6px;
        }

        .webuploader-pick {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: none;
            padding: 0;
            color: #74adf2;
            width: 100%;
            text-align: left;
        }

        .rightBorder {
            border-left: 1px solid #e8e8e9;
        }

        .table-detail {
            margin: 0 auto;
        }

        .entryTitle {
            font-weight: bold;
            width: 80px;
            background-color: #F5F5F5;
        }
        td  .lookFj{
            color:#74adf2;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 1;
            position: relative;
            cursor: pointer;
            background: url(/dist/img/upload_normal.gif) no-repeat 6px center;
            padding-left: 24px !important;
            text-align: left;
        }
        .delfile{
            position: absolute;
            right: 0;
            top: 0;
            width: 15px;
            height: 100%;
            line-height: 24px;
            text-align: center;
            font-size: 14px;
            border-radius: 50%;
            background: #fff;
            z-index: 1111111;
            color: #bbb;
            cursor: pointer;
        }
        .delfile:hover{
            color:red;
        }
        .fujian {
            display: inline-block;
            cursor: pointer;
            padding-left: 38px;
            background: url(/dist/img/fujian.png) no-repeat 20px center;
            color: #2a8cec;
        }
        td textarea,td input{
            color:#2a8cec;
        }
        .progressobj {
            float: left;
            line-height: 24px;
            cursor: pointer;
        }
        .IcoNormal{
            margin-top: 5px;
        }
        .filename {
            max-width: 70px;
        }
    </style>
</head>
<body>
<iframe id="ifAttach" style="display:none"></iframe>
<section class="content" id="app">
    <table class="table table-hover table-bordered text-center">
        <thead>
            <tr class="td-module">
                <th class="text-center" style="width: 40px;">序号</th>
                <th class="text-center" style="width: 125px;">文档附件</th>
                <th class="text-center" style="width: 125px;">展示图片</th>
            </tr>
        </thead>
        <tbody>
            <tr v-for="(attach,i) in attachHistoryList">
                <td>{{i+1}}</td>
                <td>
                    <div class="progressobj" v-if="attach.attachName" @click="download(attach.attachUrl,attach.attachName)">
                        <input type="button" class="IcoNormal" style="float:left;"/>
                        <div class="filename" style="float:left;">
                            {{attach.attachName}}
                        </div>
                    </div>
                </td>
                <td>
                    <div class="progressobj" v-if="attach.imageName" @click="download(attach.imageUrl,attach.imageName)">
                        <input type="button" class="IcoNormal" style="float:left;"/>
                        <div class="filename" style="float:left;">
                            {{attach.imageName}}
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>

</section>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=0b5caf39"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=fff81c63"></script>
<script type="text/javascript" src="/dist/plugins/select2/select2.min.js"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script src="/dist/plugins/webuploader-0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="/dist/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/dist/plugins/ztree/js/jquery.ztree.exhide-3.5.js"></script>
<script type="text/javascript">
    var api = frameElement.api, W = api.opener;
    var app = new Vue({
        el: '#app',
        data: {
            attachHistoryList:[]
        },
        methods: {
            download: function (src,name) {
                downloadFile(attachId,fileName)
                return false;
            }
        },
        mounted: function () {
            var that = this;
            //初始化上传控件
            $.wyui.postMethod(urlConfig.main.getMainDetail, {id:$.wyui.page.urlParams.fileId}, function (r) {
                that.attachHistoryList=r.attachHistoryList;
            });

        }
    });
</script>
</body>
</html>